package org.scboy.dbms.controller;

import org.scboy.common.annotation.Menu;
import org.scboy.common.annotation.Permission;
import org.scboy.common.request.Result;
import org.scboy.dbms.service.ValidClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/base/validclass/")
@Menu("微服务管理系统.验证注册")
public class ValidClassController {
	
	@Autowired
	ValidClassService validClassService;
	
	@GetMapping("list")
	@Permission("获取注册的验证类")
	public Result langs(){
		return Result.Success(validClassService.list(), "");
	}
	
}
